{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-140880","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","state":"PUBLISHED","assignerShortName":"apache","dateReserved":"2026-12-01T08:14:03.216Z","datePublished":"2026-12-01T11:16:51.548Z","dateUpdated":"2026-12-01T11:16:51.548Z"},"containers":{"cna":{"providerMetadata":{"orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","shortName":"apache","dateUpdated":"2026-12-01T11:16:51.548Z"},"title":"Apache Karaf: Incorrect Authorization vulnerability in the config service","problemTypes":[{"descriptions":[{"description":"CWE-863","lang":"en","cweId":"CWE-863","type":"CWE"}]}],"source":{"advisory":"https://karaf.apache.org/security/cve-2026-140880.txt","discovery":"EXTERNAL"},"affected":[{"vendor":"Apache Software Foundation","product":"Apache Karaf","packageURL":"pkg:maven/org.apache.karaf.config/org.apache.karaf.config.core","versions":[{"status":"affected","version":"0","lessThan":"4.4.13","versionType":"semver"}],"defaultStatus":"unaffected","collectionURL":"https://repo.maven.apache.org/maven2","packageName":"org.apache.karaf.config:org.apache.karaf.config.core"}],"descriptions":[{"value":"The fix for CVE-2026-91012, released in Apache Karaf 4.4.12, restricts the file a new configuration is written to so that it stays inside ${karaf.etc}. This is not sufficient, because files reserved to the admin role, such as etc/users.properties and the JMX and command ACL files, are also located in ${karaf.etc}.\n\n\nConfigRepositoryImpl, which backs the config MBean and the config:* shell commands, still derives the target file from caller-supplied input such as the felix.fileinstall.filename property. The shipped ACLs select the required role from the configuration PID, not from the file that is written. An authenticated user with the manager role can therefore use a PID they are allowed to edit to overwrite a reserved file, and gain the admin role.\n\n\n\n\nUsers are recommended to upgrade to version 4.4.13 or 4.5.0, which fix the issue. A new configuration can now only be written to a file named after its own PID or factory PID, with a configuration file extension.\n\nMitigationUsers who cannot upgrade should grant the manager role only to users trusted as much as admins. They can also require the admin role for edit, update and property-* in etc/org.apache.karaf.command.acl.config.cfg, and for create, update, setProperty, appendProperty and deleteProperty in etc/jmx.acl.org.apache.karaf.config.cfg.","lang":"en","supportingMedia":[{"type":"text/html","base64":false,"value":"The fix for CVE-2026-91012, released in Apache Karaf 4.4.12, restricts the file a new configuration is written to so that it stays inside&nbsp;<code>${karaf.etc}</code>. This is not sufficient, because files reserved to the&nbsp;<code>admin</code>&nbsp;role, such as&nbsp;<code>etc/users.properties</code>&nbsp;and the JMX and command ACL files, are also located in&nbsp;<code>${karaf.etc}</code>.<div><br></div><div><span>ConfigRepositoryImpl</span>, which backs the config MBean and the&nbsp;<code>config:*</code>&nbsp;shell commands, still derives the target file from caller-supplied input such as the&nbsp;<code>felix.fileinstall.filename</code>&nbsp;property. The shipped ACLs select the required role from the configuration PID, not from the file that is written. An authenticated user with the&nbsp;<code>manager</code>&nbsp;role can therefore use a PID they are allowed to edit to overwrite a reserved file, and gain the&nbsp;<code>admin</code>&nbsp;role.</div><div><br></div><div>Users are recommended to upgrade to version 4.4.13 or 4.5.0, which fix the issue. A new configuration can now only be written to a file named after its own PID or factory PID, with a configuration file extension.</div><h3>Mitigation</h3><div>Users who cannot upgrade should grant the&nbsp;<code>manager</code>&nbsp;role only to users trusted as much as admins. They can also require the&nbsp;<code>admin</code>&nbsp;role for&nbsp;<code>edit</code>,&nbsp;<code>update</code>&nbsp;and&nbsp;<code>property-*</code>&nbsp;in&nbsp;<code>etc/org.apache.karaf.command.acl.config.cfg</code>, and for&nbsp;<code>create</code>,&nbsp;<code>update</code>,&nbsp;<code>setProperty</code>,&nbsp;<code>appendProperty</code>&nbsp;and&nbsp;<code>deleteProperty</code>&nbsp;in&nbsp;<code>etc/jmx.acl.org.apache.karaf.config.cfg</code>.</div>"}]}],"references":[{"url":"https://karaf.apache.org/security/cve-2026-91012.txt","tags":["vendor-advisory"]}],"metrics":[{"other":{"type":"Textual description of severity","content":{"text":"moderate"}},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"credits":[{"lang":"en","value":"buiih <bqhuyit1710@gmail.com>","type":"reporter"}],"x_generator":{"engine":"Vulnogram 1.0.3"}}}}