CVE-2022-48338
Reported by mitre · Published February 20, 2023
An issue was discovered in GNU Emacs through 28.2. In ruby-mode.el, the ruby-find-library-file function has a local command injection vulnerability. The ruby-find-library-file function is an interactive function, and bound to C-c C-f. Inside the function, the external command gem is called through shell-command-to-string, but the feature-name parameters are not escaped. Thus, malicious Ruby source files may cause commands to be executed.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | emacs-devel | 0 |
| n/a | n/a | * |
| amazon:2023 | emacs-nox | 0 |
| amazon:2023 | emacs-filesystem | 0 |
| amazon:2 | emacs-filesystem | 0 |
| amazon:2 | emacs-terminal | 0 |
| amazon:2023 | emacs-lucid | 0 |
| amazon:2023 | emacs-common | 0 |
| amazon:2 | emacs-common | 0 |
| amazon:2 | emacs-nox | 0 |
| amazon:2 | emacs-lucid | 0 |
| amazon:2023 | emacs | 0 |
| amazon:2023 | emacs-devel | 0 |
| amazon:2023 | emacs-terminal | 0 |
| amazon:2 | emacs | 0 |
Timeline
- Feb 20, 2023 CVE Published
- Feb 21, 2023 EPSS Score (30 in total, the first dated here)
- Feb 21, 2023 PoC Published
- Mar 10, 2026 Distribution Patch (52 in total, the first dated here)
- Mar 10, 2026 Security Advisory (56 in total, the first dated here)
- May 24, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-48338
vulnetix vdb fixes CVE-2022-48338
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-48338/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- DSA-5360 vendor-advisory
- FEDORA-2023-5763445abe vendor-advisory
- FEDORA-2023-29df561f1d vendor-advisory