# CVE-2023-49103: ownCloud graphapi Information Disclosure

> An attacker can access a phpinfo URL to reveal sensitive environment variables, including admin credentials and license keys, in ownCloud deployments.

- **Severity:** Critical 10.0 (`CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:C/UI:N`)
- **Exploited in the wild:** Yes, since 30 Nov 2023 (CISA KEV)
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 21 Nov 2023
- **Updated:** 21 Oct 2025
- **Also known as:** GHSA-7f2q-q825-57p8

## What is CVE-2023-49103?

CVE-2023-49103 is a critical vulnerability in n/a, published on 21 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An issue was discovered in ownCloud owncloud/graphapi 0.2.x before 0.2.1 and 0.3.x before 0.3.1. The graphapi app relies on a third-party GetPhpInfo.php library that provides a URL. When this URL is accessed, it reveals the configuration details of the PHP environment (phpinfo). This information includes all the environment variables of the webserver. In containerized deployments, these environment variables may include sensitive data such as the ownCloud admin password, mail server credentials, and license key. Simply disabling the graphapi app does not eliminate the vulnerability. Additionally, phpinfo exposes various other potentially sensitive configuration details that could be exploited by an attacker to gather information about the system. Therefore, even if ownCloud is not running in a containerized environment, this vulnerability should still be a cause for concern. Note that Docker containers from before February 2023 are not vulnerable to the credential disclosure.

Weakness: CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor)

## Which versions are affected by CVE-2023-49103?

It affects 1 product.


Products: Owncloud Graph Api.

## How do I fix CVE-2023-49103?

No fix has been published for CVE-2023-49103 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 21 Dec 2023.

## Is CVE-2023-49103 being exploited?

Yes. Attackers have exploited CVE-2023-49103 in the wild since at least 30 Nov 2023.

Public exploit code:

- PoC for the CVE-2023-49103 (github_poc): https://github.com/creacitysec/CVE-2023-49103
- OwnCloud CVE-2023-49103 (github_poc): https://github.com/merlin-ke/OwnCloud-CVE-2023-49103
- ownCloud Phpinfo Reader (metasploit)
- This is a simple proof of concept for CVE-2023-49103. (github_poc): https://github.com/d0rb/CVE-2023-49103
- OwnCloud - Phpinfo Configuration (nuclei): http/cves/2023/CVE-2023-49103.yaml

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-49103 and fix it if it is affected.

What it is: CVE-2023-49103 is a critical vulnerability in n/a, published on 21 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: Yes. Attackers have exploited CVE-2023-49103 in the wild since at least 30 Nov 2023.

Affected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-49103/ (Markdown: https://insights.sbomify.com/CVE-2023-49103/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-49103
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-49103
- OSV: https://osv.dev/vulnerability/CVE-2023-49103

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-49103/
Summaries are generated and may contain mistakes; the official description above is the record.
