Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2021-25746: Ingress-nginx directive injection via annotations #2909

Closed
miwithro opened this issue Apr 25, 2022 · 1 comment
Closed

CVE-2021-25746: Ingress-nginx directive injection via annotations #2909

miwithro opened this issue Apr 25, 2022 · 1 comment
Labels
announcement resolution/answer-provided Provided answer to issue, question or feedback. security

Comments

@miwithro
Copy link
Contributor

miwithro commented Apr 25, 2022

Issue Details
A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use .metadata.annotations in an Ingress object (in the networking.k8s.io or extensions API group) to obtain the credentials of the ingress-nginx controller. In the default configuration, that credential has access to all secrets in the cluster.

This issue has been rated High (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L), and assigned CVE-2021-25746.
Affected Components and Configurations
This bug affects ingress-nginx. If you do not have ingress-nginx installed on your cluster, you are not affected. You can check this by running kubectl get po -n ingress-nginx.

Multitenant environments where non-admin users have permissions to create Ingress objects are most affected by this issue.
Affected Versions
• <v1.2.0
Fixed Versions
• v1.2.0-beta.0

AKS Information:

If you are running the HttpApplicationRouting addon on your AKS cluster you will be vulnerable.

Nginx-ingress-controller images of clusters with 1.22+ k8s version are going to be updated from 1.0.5 to 1.2.0

@miwithro miwithro pinned this issue Apr 25, 2022
@miwithro miwithro added the resolution/answer-provided Provided answer to issue, question or feedback. label Apr 25, 2022
@ghost
Copy link

ghost commented Apr 28, 2022

Thanks for reaching out. I'm closing this issue as it was marked with "Answer Provided" and it hasn't had activity for 2 days.

@ghost ghost closed this as completed Apr 28, 2022
@ghost ghost locked as resolved and limited conversation to collaborators May 28, 2022
@miwithro miwithro unpinned this issue Jun 6, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
announcement resolution/answer-provided Provided answer to issue, question or feedback. security
Projects
None yet
Development

No branches or pull requests

1 participant