# GHSA-CP9W-G6W9-GQ4R: Malicious code in donjon-ledger (RubyGems)

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

## Affected versions

- donjon-ledger (RubyGems): 2.0.2

## Description

## Source: amazon-inspector (4ab38ebb03685b0ddfa31074b056e0a95da764170efe3026ed822ff7c8b3c247)
The gemspec declares ext/mkrf_conf.rb as a native extension, causing it to execute automatically during `gem install`. The script ships no C/C++/Rust sources and performs no build work. Instead it collects host identifiers (hostname, username) and reads /etc/passwd, /etc/hosts, and /etc/resolv.conf, then opens a TLS connection to the hardcoded Burp Collaborator subdomain 8enejtlpqb2m1fzcaieyzjgv3m9mxcl1.oastify.com on port 443 and POSTs the collected JSON. A DNS lookup to the same subdomain is also performed. The script writes a.installed marker and exits. The extension hook exists solely as an install-time execution vector for this exfiltration payload.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/452e31d9fc58339d97d3fd0a82ef67b846f63d34/osv/malicious/rubygems/donjon-ledger/MAL-2026-18765.json))

## References

- https://github.com/ossf/malicious-packages/blob/452e31d9fc58339d97d3fd0a82ef67b846f63d34/osv/malicious/rubygems/donjon-ledger/MAL-2026-18765.json
- https://rubygems.org/gems/donjon-ledger/versions/2.0.2
- https://github.com/advisories/GHSA-cp9w-g6w9-gq4r

Page: https://cve.now/GHSA-CP9W-G6W9-GQ4R

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