# GHSA-9V6C-5WVV-8XQ9: Malicious code in buffer-code-exercise-api (RubyGems)

- Database: GitHub
- Malicious package: yes
- Published: 2026-11-12
- Modified: 2026-11-12

## Affected versions

- buffer-code-exercise-api (RubyGems): 1.0.1

## Description

## Source: amazon-inspector (b575cb1f6c5f576af68398e3ad383942d6ec5f065456948bc51df018e7e0ab68)
The gem declares ext/mkrf_conf.rb as a native extension via the gemspec `extensions:` entry, which causes RubyGems to execute the script during `gem install`. The script performs no native build work and ships no native sources. Instead, it collects hostname, login name, current working directory, home directory, and the contents of /etc/passwd, /etc/hosts, and /etc/resolv.conf, JSON-encodes them, and POSTs them over TLS to the hardcoded host 0ef6jllhq32e17z4aaeqzbgn3e9fx5lu.oastify.com (a Burp Collaborator out-of-band interaction subdomain), preceded by a DNS probe to the same host. The destination is not associated with the package's publisher, and the files read bear no relation to building a native extension. The extension entry is used purely as an install-time execution vector.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/d96303ea4f55739f99519c744c2cd893c10b2d04/osv/malicious/rubygems/buffer-code-exercise-api/MAL-2026-19156.json))

## References

- https://github.com/ossf/malicious-packages/blob/d96303ea4f55739f99519c744c2cd893c10b2d04/osv/malicious/rubygems/buffer-code-exercise-api/MAL-2026-19156.json
- https://rubygems.org/gems/buffer-code-exercise-api/versions/1.0.1
- https://github.com/advisories/GHSA-9v6c-5wvv-8xq9

Page: https://cve.now/GHSA-9V6C-5WVV-8XQ9

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
