Internal-service access and file disclosure via unchecked URLs
Published Jul 6, 2024 · Updated Aug 1, 2024
SSRF and partial local file inclusion in LocalAI before 2.17.0 allow remote attackers to access internal HTTP services and read local files. The /models/apply path passes attacker-supplied HTTP and file URLs to GetURI, which fetched network resources and read resolved files without restricting them to the model base path. Network access to the API is sufficient; error-message truncation limits local-file disclosure, while HTTP requests can reach services accessible from the LocalAI host.
Summary
What happened
SSRF and partial local file inclusion in LocalAI before 2.17.0 allow remote attackers to access internal HTTP services and read local files. The /models/apply path passes attacker-supplied HTTP and file URLs to GetURI, which fetched network resources and read resolved files without restricting them to the model base path. Network access to the API is sufficient; error-message truncation limits local-file disclosure, while HTTP requests can reach services accessible from the LocalAI host.
The record
- CVE
- CVE-2024-6095
- Published
- Jul 6, 2024
- Updated
- Aug 1, 2024
- Vendor
- Mudler
- Product
- LocalAI
- Classifications
- CWE-918, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 6, 2024CVE publishedPublication date reported by the CVE source.
- Aug 1, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2.15.0 <2.17.0
- Affected versionversion=unspecified <2.17
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Huntr proof of concept for CVE-2024-6095proof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo