CVE-2021-43851
SQL injection vulnerability in anuko timetracker
Check your servers for CVE-2021-43851
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-43851 affects timetracker, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Anuko Time Tracker is an open source, web-based time tracking application written in PHP. SQL injection vulnerability exist in multiple files in Time Tracker version 1.19.33.5606 and prior due to not properly checking of the "group" and "status" parameters in POST requests. Group parameter is posted along when navigating between organizational subgroups (groups.php file). Status parameter is used in multiple files to change a status of an entity such as making a project, task, or user inactive. This issue has been patched in version 1.19.33.5607. An upgrade is highly recommended. If an upgrade is not practical, introduce ttValidStatus function as in the latest version and start using it user input check blocks wherever status field is used. For groups.php fix, introduce ttValidInteger function as in the latest version and use it in the access check block in the file.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 1.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 69.1% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| timetracker |
affected < 1.19.33.5607
|
Is my server affected?
Find the installed version of timetracker and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i timetracker
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-43851 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-43851RHEL, Rocky, Alma, Fedora
rpm -q timetracker
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-43851Alpine
apk list --installed | grep -i timetrackerWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-43851
trivy image --scanners vuln IMAGE | grep CVE-2021-43851
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/anuko/timetracker/commit/0cf32f1046418aa2e5218b0b370064820c330c6a github.com
- https://github.com/anuko/timetracker/commit/94fda0cc0c9c20ab98d38ccc75ff040d13dc7f1b github.com
Source: the record CVE-2021-43851 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse