# CVE-2019-10138: Improper Access Control in novajoin

> Authenticated users can generate FreeIPA tokens due to missing access controls in the novajoin API, potentially escalating privileges or accessing sensitive data.

- **Severity:** High 7.1 (`CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 30 Jul 2019
- **Updated:** 4 Aug 2024
- **Also known as:** GHSA-xf8c-3cgx-fcwm, PYSEC-2019-192, RHBA-2019:0944, RHSA-2019:1728

## What is CVE-2019-10138?

CVE-2019-10138 is a high-severity missing authorization vulnerability in Red Hat python-novajoin, published on 30 Jul 2019. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

A flaw was discovered in the python-novajoin plugin, all versions up to, excluding 1.1.1, for Red Hat OpenStack Platform. The novajoin API lacked sufficient access control, allowing any keystone authenticated user to generate FreeIPA tokens.

Weakness: CWE-284 (Improper Access Control)

## Which versions are affected by CVE-2019-10138?

3 open source packages ship an affected version, including novajoin. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `novajoin` | PyPI | All versions | 1.1.1 |
| `novajoin` | PyPI | All versions | 1.1.1 |
| `novajoin` | PyPI | All versions | 1.1.1 |
| `python-novajoin` | Red Hat:openstack:13::el7 | All versions | 0:1.1.1-3.el7ost |
| `ansible-role-container-registry` | Red Hat:openstack:14::el7 | All versions | 0:1.0.1-0.20190218212245.d6a749a.el7ost |
| `ansible-role-redhat-subscription` | Red Hat:openstack:14::el7 | All versions | 0:1.0.2-1.el7ost |
| `ansible-role-tripleo-modify-image` | Red Hat:openstack:14::el7 | All versions | 0:1.0.1-0.20190226052419.9014df9.el7ost |
| `ansible-tripleo-ipsec` | Red Hat:openstack:14::el7 | All versions | 0:9.1.0-1.el7ost |
| `openstack-barbican` | Red Hat:openstack:14::el7 | All versions | 0:7.0.1-0.20190204192112.ed17b57.el7ost |
| `openstack-barbican-api` | Red Hat:openstack:14::el7 | All versions | 0:7.0.1-0.20190204192112.ed17b57.el7ost |
| `openstack-barbican-common` | Red Hat:openstack:14::el7 | All versions | 0:7.0.1-0.20190204192112.ed17b57.el7ost |
| `openstack-barbican-keystone-listener` | Red Hat:openstack:14::el7 | All versions | 0:7.0.1-0.20190204192112.ed17b57.el7ost |
| `openstack-barbican-worker` | Red Hat:openstack:14::el7 | All versions | 0:7.0.1-0.20190204192112.ed17b57.el7ost |
| `openstack-designate` | Red Hat:openstack:14::el7 | All versions | 1:7.0.1-0.20190314164436.7f4c878.el7ost |
| `openstack-designate-agent` | Red Hat:openstack:14::el7 | All versions | 1:7.0.1-0.20190314164436.7f4c878.el7ost |
| `openstack-designate-api` | Red Hat:openstack:14::el7 | All versions | 1:7.0.1-0.20190314164436.7f4c878.el7ost |
| `openstack-designate-central` | Red Hat:openstack:14::el7 | All versions | 1:7.0.1-0.20190314164436.7f4c878.el7ost |
| `openstack-designate-common` | Red Hat:openstack:14::el7 | All versions | 1:7.0.1-0.20190314164436.7f4c878.el7ost |
| `openstack-designate-mdns` | Red Hat:openstack:14::el7 | All versions | 1:7.0.1-0.20190314164436.7f4c878.el7ost |
| `openstack-designate-pool-manager` | Red Hat:openstack:14::el7 | All versions | 1:7.0.1-0.20190314164436.7f4c878.el7ost |
| `openstack-designate-producer` | Red Hat:openstack:14::el7 | All versions | 1:7.0.1-0.20190314164436.7f4c878.el7ost |
| `openstack-designate-sink` | Red Hat:openstack:14::el7 | All versions | 1:7.0.1-0.20190314164436.7f4c878.el7ost |
| `openstack-designate-worker` | Red Hat:openstack:14::el7 | All versions | 1:7.0.1-0.20190314164436.7f4c878.el7ost |
| `openstack-designate-zone-manager` | Red Hat:openstack:14::el7 | All versions | 1:7.0.1-0.20190314164436.7f4c878.el7ost |
| `openstack-heat-ui` | Red Hat:openstack:14::el7 | All versions | 0:1.4.1-0.20190130023741.0b301df.el7ost |
| `openstack-kuryr-kubernetes` | Red Hat:openstack:14::el7 | All versions | 0:0.5.4-0.20190220170509.17d2635.el7ost |
| `openstack-kuryr-kubernetes-cni` | Red Hat:openstack:14::el7 | All versions | 0:0.5.4-0.20190220170509.17d2635.el7ost |
| `openstack-kuryr-kubernetes-common` | Red Hat:openstack:14::el7 | All versions | 0:0.5.4-0.20190220170509.17d2635.el7ost |
| `openstack-kuryr-kubernetes-controller` | Red Hat:openstack:14::el7 | All versions | 0:0.5.4-0.20190220170509.17d2635.el7ost |
| `openstack-manila` | Red Hat:openstack:14::el7 | All versions | 1:7.1.0-2.el7ost |
| `openstack-manila-share` | Red Hat:openstack:14::el7 | All versions | 1:7.1.0-2.el7ost |
| `openstack-manila-ui` | Red Hat:openstack:14::el7 | All versions | 0:2.16.1-0.20190204170113.4865df2.el7ost |
| `openstack-octavia-ui` | Red Hat:openstack:14::el7 | All versions | 0:2.0.1-0.20190110112807.85e4a3e.el7ost |
| `openstack-selinux` | Red Hat:openstack:14::el7 | All versions | 0:0.8.18-1.el7ost |
| `openstack-tempest` | Red Hat:openstack:14::el7 | All versions | 1:19.0.0-3.el7ost |
| `openstack-tempest-all` | Red Hat:openstack:14::el7 | All versions | 1:19.0.0-3.el7ost |
| `openstack-zaqar` | Red Hat:openstack:14::el7 | All versions | 1:7.0.1-0.20181026065336.fed6d77.el7ost |
| `openvswitch2.10` | Red Hat:openstack:14::el7 | All versions | 0:2.10.0-28.el7fdp.2 |
| `openvswitch2.10-debuginfo` | Red Hat:openstack:14::el7 | All versions | 0:2.10.0-28.el7fdp.2 |
| `openvswitch2.10-devel` | Red Hat:openstack:14::el7 | All versions | 0:2.10.0-28.el7fdp.2 |

Products: Python Novajoin.

## How do I fix CVE-2019-10138?

Upgrade novajoin to 1.1.1 or later.

## Is CVE-2019-10138 being exploited?

There is no known exploitation of CVE-2019-10138 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2019-10138 and fix it if it is affected.

What it is: CVE-2019-10138 is a high-severity missing authorization vulnerability in Red Hat python-novajoin, published on 30 Jul 2019. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2019-10138 in the wild and no public exploit code.

Affected packages and fixed versions:
- novajoin (PyPI): affected all versions; fixed in 1.1.1
- novajoin (PyPI): affected all versions; fixed in 1.1.1
- novajoin (PyPI): affected all versions; fixed in 1.1.1

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-2019-10138/ (Markdown: https://insights.sbomify.com/CVE-2019-10138/index.md)
```

## Sources

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

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